package manager

import (
	"gorm.io/gorm"
	"time"
)

// TargetPlan 目标计划
type TargetPlan struct {
	HmId           uint           `json:"hmId" form:"hmId" gorm:"column:hm_id;comment:;size:19;primarykey;AUTO_INCREMENT;"` //hmId字段
	CreatedAt      time.Time      // 创建时间
	UpdatedAt      time.Time      // 更新时间
	DeletedAt      gorm.DeletedAt `gorm:"index" json:"-"`                                                                      // 删除时间
	ProBonoNum     uint           `json:"proBonoNum" form:"proBonoNum" gorm:"column:pro_bono_num;comment:公益服务人数;size:19;"`     // 公益服务人数
	ProBonoTime    time.Time      `json:"proBonoTime" form:"proBonoTime" gorm:"column:pro_bono_time;comment:公益服务时间;"`          // 公益服务时间
	IncrVipNum     uint           `json:"incrVipNum" form:"incrVipNum" gorm:"column:incr_vip_num;comment:新增会员人数;"`             // 新增会员人数
	IncrVipTime    time.Time      `json:"incrVipTime" form:"incrVipTime" gorm:"column:incr_vip_time;comment:新增会员时间;"`          // 新增会员时间
	ServiceVipNum  uint           `json:"serviceVipNum" form:"serviceVipNum" gorm:"column:service_vip_num;comment:服务会员人数;"`    // 服务会员人数
	ServiceVipTime time.Time      `json:"serviceVipTime" form:"serviceVipTime" gorm:"column:service_vip_time;comment:服务会员时间;"` // 服务会员时间
}

func (TargetPlan) TableName() string {
	return "fd_target_plan"
}
